﻿

using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
using CommonTagTime.DataAccess;
using CommonTagTime.ModelObject;
namespace CommonTagTime.Business
{
    public class busEntry
    {

        public const string ORDERBY = "OrderBy";
        public const string ORDERDIRECTION = "OrderDirection";
        public const string CURRENTPAGE = "CurrentPage";
        public const string PAGESIZE = "PageSize";
        public const string TOTALRECORDS = "TotalRecords";
        public const string CONDITION = "Condition";

        private daoEntry _daoEnrty;
        //------------------------------------------------
        //PUBLIC
        //------------------------------------------------
        public busEntry()
        {
            _daoEnrty = new daoEntry();
        }


        public bool Delete(int entryId)
        {
            return _daoEnrty.Delete(entryId);
        }
        public int Insert(Entry objEntry)
        {
            return _daoEnrty.Insert(objEntry);
        }
        public bool Update(Entry objEntry)
        {
            return _daoEnrty.Update(objEntry);
        }
        public Entry GetByID(int EntryId)
        {
            return _daoEnrty.GetByID(EntryId);
        }
        public EntryCollection List(Entry objEntry)
        {
            return _daoEnrty.List(objEntry);
        }
    }

}